from django.urls import path


# from home.views.login import LoginView
from luffyapi.apps.home.views1.captcha import CaptchaView
from . import views


urlpatterns = [
    path(r"banner/", views.BannerAPIView.as_view()),
    path(r"nav/", views.HeaderNavAPIView.as_view()),
    path("api/captcha_check/", CaptchaView.as_view()),
    path("api/check/", CaptchaView.as_view()),
]


#     /**
#     * showdoc
#     * @title 导航栏数据请求
#     * @description 通过一个api来获取导航栏的信息的数据
#     * @method get
#     * @url http://api.luffycity.cn:8001/home/nav/
#     * @return [{"id": 1,"title": "免费课","link": "/course/","is_site": false},]
#     * @return_param title string 名称
#     * @return_param link string 跳转路径
#     * @return_param is_site string 是否是外站
#     * @number 98
#     */